package com.tca.spring.framework.learning.ioc;

import com.tca.spring.framework.learning.ioc.beans.Student;
import com.tca.spring.framework.learning.ioc.config.StudentConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zhoua
 * @Date 2021/5/1
 */
public class SpringStudentAnnotationStarter {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(StudentConfiguration.class);
        Student student = applicationContext.getBean(Student.class);
        System.out.println(student);
    }
}
